<?php

session_start();


require "include/template2.inc.php";
require "include/beContent.inc.php";

require "include/auth.inc.php";

$main = new Skin(); 

$form = new Form("dataEntry",$jobEntity);

$form->addSection("Job Posting Management");

$form->addText("title_it", "Title (it)", 80, MANDATORY);
$form->addText("title_en", "Title (en)", 80, MANDATORY);
$form->addSelectFromReference2($usersEntity, "reference", "Contact");

$form->addEditor("body_it", "Body", 20, 50);
$form->addEditor("body_en", "Body", 20, 50);

$form->addCheck("Active", ":active:*:CHECKED");


if (!isset($_REQUEST['action'])) {
	$_REQUEST['action'] = "edit";
}
switch($_REQUEST['action']) {
	case "add":
	$main->setContent("body",$form->addItem());
	break;
	case "edit":
	$main->setContent("body",$form->editItem());
	break;
}

$main->close();

?> 